package com.tan.firstblog.service.implement;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.tan.firstblog.dao.interfaces.PostDao;
import com.tan.firstblog.models.Post;
import com.tan.firstblog.service.interfaces.PostService;

public class PostServiceImpl implements PostService {
	
	private PostDao postDao;
	
	public void setPostDao(PostDao postDao) {
		this.postDao = postDao;
	}

	@Transactional
	public List<Post> getAllPosts() {
		return this.postDao.getAllPosts();
	}
}
